Skip to content

Commit

Permalink
unity check
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Dec 19, 2024
1 parent 5ccf37d commit d791479
Show file tree
Hide file tree
Showing 387 changed files with 312 additions and 41,690 deletions.
116 changes: 58 additions & 58 deletions sandbox/GeneratorSandbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,61 +20,61 @@ public class MyTakoyaki
}


public enum Gender
{
Male, Female, Unknown
}

[MemoryTable("person"), MessagePackObject(true)]
public class Person
{
[PrimaryKey(keyOrder: 1)]
public int PersonId { get; set; }
[SecondaryKey(0), NonUnique]
[SecondaryKey(2, keyOrder: 1), NonUnique]
public int Age { get; set; }
[SecondaryKey(1), NonUnique]
[SecondaryKey(2, keyOrder: 0), NonUnique]
public Gender Gender { get; set; }
public string Name { get; set; }

public Person() // ?
{
}

public Person(int PersonId, int Age, Gender Gender, string Name)
{
this.PersonId = PersonId;
this.Age = Age;
this.Gender = Gender;
this.Name = Name;
}

public override string ToString()
{
return $"{PersonId} {Age} {Gender} {Name}";
}
}

[MemoryTable("monster"), MessagePackObject(true)]
public partial class Monster
{
[PrimaryKey]
public int MonsterId { get; private set; }
public string Name { get; private set; }
public int MaxHp { get; private set; }

public Monster(int MonsterId, string Name, int MaxHp)
{
this.MonsterId = MonsterId;
this.Name = Name;
this.MaxHp = MaxHp;
}
}

[MemoryTable("enumkeytable"), MessagePackObject(true)]
public class EnumKeyTable
{
[PrimaryKey]
public Gender Gender { get; set; }
}
//public enum Gender
//{
// Male, Female, Unknown
//}

//[MemoryTable("person"), MessagePackObject(true)]
//public class Person
//{
// [PrimaryKey(keyOrder: 1)]
// public int PersonId { get; set; }
// [SecondaryKey(0), NonUnique]
// [SecondaryKey(2, keyOrder: 1), NonUnique]
// public int Age { get; set; }
// [SecondaryKey(1), NonUnique]
// [SecondaryKey(2, keyOrder: 0), NonUnique]
// public Gender Gender { get; set; }
// public string Name { get; set; }

// public Person() // ?
// {
// }

// public Person(int PersonId, int Age, Gender Gender, string Name)
// {
// this.PersonId = PersonId;
// this.Age = Age;
// this.Gender = Gender;
// this.Name = Name;
// }

// public override string ToString()
// {
// return $"{PersonId} {Age} {Gender} {Name}";
// }
//}

//[MemoryTable("monster"), MessagePackObject(true)]
//public partial class Monster
//{
// [PrimaryKey]
// public int MonsterId { get; private set; }
// public string Name { get; private set; }
// public int MaxHp { get; private set; }

// public Monster(int MonsterId, string Name, int MaxHp)
// {
// this.MonsterId = MonsterId;
// this.Name = Name;
// this.MaxHp = MaxHp;
// }
//}

//[MemoryTable("enumkeytable"), MessagePackObject(true)]
//public class EnumKeyTable
//{
// [PrimaryKey]
// public Gender Gender { get; set; }
//}
51 changes: 0 additions & 51 deletions sandbox/PerfTest/App.config

This file was deleted.

216 changes: 0 additions & 216 deletions sandbox/PerfTest/Engines/Dictionary_Test.cs

This file was deleted.

Loading

0 comments on commit d791479

Please sign in to comment.