public static ObjectMechanismStatus Create(int id, [NotNull] ObjectMechanismDefinition definition, int level, PlayerStatus owner, Vector2Int position)
        {
            //IL_001b: Unknown result type (might be due to invalid IL or missing references)
            int  id2            = owner.id;
            int  teamId         = owner.teamId;
            int  teamIndex      = owner.teamIndex;
            Area area           = definition.areaDefinition.ToArea(position);
            int  valueWithLevel = definition.baseMecaLife.GetValueWithLevel(level);
            ObjectMechanismStatus objectMechanismStatus = new ObjectMechanismStatus(id, id2, teamId, teamIndex, level);

            objectMechanismStatus.area       = area;
            objectMechanismStatus.definition = definition;
            objectMechanismStatus.SetCarac(CaracId.Life, valueWithLevel);
            return(objectMechanismStatus);
        }
        public static FloorMechanismStatus Create(int id, [NotNull] FloorMechanismDefinition definition, int level, PlayerStatus owner, Vector2Int position)
        {
            //IL_001b: Unknown result type (might be due to invalid IL or missing references)
            int  id2       = owner.id;
            int  teamId    = owner.teamId;
            int  teamIndex = owner.teamIndex;
            Area area      = definition.areaDefinition.ToArea(position);

            return(new FloorMechanismStatus(id, id2, teamId, teamIndex, level)
            {
                area = area,
                definition = definition
            });
        }
Ejemplo n.º 3
0
        public static HeroStatus Create(int id, [NotNull] WeaponDefinition definition, int level, Gender gender, PlayerStatus owner, Vector2Int position)
        {
            //IL_001e: Unknown result type (might be due to invalid IL or missing references)
            int        id2       = owner.id;
            int        teamId    = owner.teamId;
            int        teamIndex = owner.teamIndex;
            Area       area      = definition.areaDefinition.ToArea(position);
            HeroStatus obj       = new HeroStatus(id, id2, teamId, teamIndex, level, gender)
            {
                area       = area,
                definition = definition
            };

            CharacterStatus.InitializeStatus(obj, definition);
            return(obj);
        }