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(); }
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(); }
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(); }
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(); }
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(); }
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(); }