15 public const string fName =
"SubsystemEggBlockBehavior";
31 m_random.Float(0f, (
float)Math.PI * 2f)
37 Log.
Error($
"Spawning creature from egg (index: {(data >> 4) & 0xFFF}) error: {e}");
40 if (componentGui !=
null) {
50 base.Load(valuesDictionary);
static void Error(object message)
virtual void DisplaySmallMessage(string text, Color color, bool blinking, bool playNotificationSound)
static Entity CreateEntity(Project project, SpawnEntityData spawnEntityData, bool throwIfNotFound)
static bool GetIsLaid(int data)
static bool GetIsCooked(int data)
static string Get(string className, int key)
获取在当前语言类名键对应的字符串
override void Load(ValuesDictionary valuesDictionary)
SubsystemGameInfo m_subsystemGameInfo
SubsystemCreatureSpawn m_subsystemCreatureSpawn
override bool OnHitAsProjectile(CellFace? cellFace, ComponentBody componentBody, WorldItem worldItem)
override int[] HandledBlocks
static int ExtractData(int value)
Component FindComponent(Type type, string name, bool throwOnError)
ValuesDictionary ValuesDictionary
static Quaternion CreateFromAxisAngle(Vector3 axis, float angle)
static readonly Vector3 UnitY