Esempio n. 1
0
        void SetStance(ButtonWidget bw, Player p, Stance ss)
        {
            if (p.World.LobbyInfo.GlobalSettings.LockTeams)
            {
                return;                 // team changes are banned
            }
            world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
            {
                TargetLocation = new int2((int)ss, 0), TargetString = p.InternalName
            });

            bw.Text = ss.ToString();
        }
Esempio n. 2
0
        void SetStance(ButtonWidget bw, Player p, Stance ss)
        {
            if (p.World.LobbyInfo.GlobalSettings.LockTeams)
            {
                return;                 // team changes are banned
            }
            // NOTE(jsd): Abuse of the type system here with `CPos`
            world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
            {
                TargetLocation = new CPos((int)ss, 0), TargetString = p.InternalName
            });

            bw.Text = ss.ToString();
        }
Esempio n. 3
0
        void SetStance(ButtonWidget bw, Player p, Stance ss)
        {
            if (!p.World.LobbyInfo.GlobalSettings.FragileAlliances)
            {
                return;                 // stance changes are banned
            }
            world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
            {
                ExtraData    = (uint)ss,
                TargetString = p.InternalName,
            });

            bw.Text = ss.ToString();
        }
Esempio n. 4
0
        void SetStance(ButtonWidget bw, Player p, Stance ss)
        {
            if (!p.World.LobbyInfo.GlobalSettings.FragileAlliances)
                return;	// stance changes are banned

            // HACK: Abuse of the type system here with `CPos`
            world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
                { TargetLocation = new CPos((int)ss, 0), TargetString = p.InternalName });

            bw.Text = ss.ToString();
        }
Esempio n. 5
0
		void SetStance(ButtonWidget bw, Player p, Stance ss)
		{
			if (!p.World.LobbyInfo.GlobalSettings.FragileAlliances)
				return;	// stance changes are banned

			world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
			{
				ExtraData = (uint)ss,
				TargetString = p.InternalName,
			});

			bw.Text = ss.ToString();
		}
Esempio n. 6
0
        void SetStance(ButtonWidget bw, Player p, Stance ss)
        {
            if (p.World.LobbyInfo.GlobalSettings.LockTeams)
                return;	// team changes are banned

            world.IssueOrder(new Order("SetStance", world.LocalPlayer.PlayerActor, false)
                { TargetLocation = new int2((int)ss, 0), TargetString = p.InternalName });

            bw.Text = ss.ToString();
        }