MyClass.cs 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 
  2. using AtomicEngine;
  3. using System;
  4. namespace AtomicNETTest
  5. {
  6. public enum BehaviorState
  7. {
  8. Friendly,
  9. Aggressive,
  10. Neutral
  11. }
  12. public class MyComponent : CSComponent
  13. {
  14. [Inspector]
  15. public bool MyBoolValue = true;
  16. [Inspector]
  17. public int MyIntValue = 5;
  18. [Inspector]
  19. public Vector3 MyVector3Value = new Vector3(1, 1, 1);
  20. [Inspector]
  21. public Quaternion MyQuaternionValue = new Quaternion(1, 0, 0, 0);
  22. [Inspector(Value1 = "This is a", Value2 = "test")]
  23. public float MyFloatValue = 42.0f;
  24. [Inspector]
  25. public string MyStringValue = "Hey!";
  26. [Inspector]
  27. public BehaviorState State = BehaviorState.Neutral;
  28. [Inspector("Sprites/star.png")]
  29. public Sprite2D sprite2D;
  30. }
  31. }