public override void Init(int SceneID, LifeMCore Core, Life Parent) { WallType type = WallType.Normal; if (Parent == null) { return; } if (Parent is IggWall) { type = (Parent as IggWall).m_WallType; } base.Init(SceneID, Core, Parent); WallInfo info = WallM.GetWallData(type, Core.m_DataID); if (info == null) { return; } m_StartPos.Unit = info.m_cx; m_StartPos.Layer = info.m_cy; m_Size = 2; m_FullHp = info.m_hp; m_IsDamage = true; m_wood = info.m_wood; m_stone = info.m_stone; m_steel = info.m_steel; m_phy_defend = info.m_phydefned; m_magic_defend = info.m_magicdefend; m_DoorState = false; }
public static void GetWallList(ref List <int> list) { WallM.GetWallList(ref list); }
private static void GetWall() { WallM.GetWall(); }