Loading

Paste #puya3ikkl

  1.     /**
  2.      * Get the difference in company value between the value of the provided company
  3.      * and the next ahead or behind in the rank list.
  4.      * @param company_id The Company ID in which the difference is based of.
  5.      * @param next_ahead_in_rank boolean value (use 'true' to compare with the next

Paste #po0sy3phj

  1. // Global function for checking if SCP is enabled at all
  2. function IsSCPEnabled()
  3. {
  4.     return GSController.GetSetting("scp_support");
  5. }

Paste #pmacpimxt

  1. class SCPClient_CompanyValueGS {
  2.  
  3.     /* Private members variables */
  4.     static COMMAND_SET = "Company Value GS";

Paste #prohqfkhe

  1.     /* Public methods */
  2.  
  3.     /**
  4.      * Is this a Company Value GS game?
  5.      * @return true, if the game has a GS that respond to Company Value GS

Paste #pciylxx8w

  1. import("Library.SCPLib", "SCPLib", 45);
  2. import("Library.SCPClient_CompanyValue", "SCPClient_CompanyValue", 1);
  3. //require("scp.nut");
  4.  
  5. class LuDiAIAfterFix extends AIController {

SCPLib Message.GetBoolDat

  1. function _SCPLib_Message::GetBoolData(index)
  2. // Get bool data at the index position in Data. If Data doesn't exist or the
  3. // index is invalid, null is returned. If data exist, but is not of the type
  4. // integer, null will be returned. Yes, it is not a typo. Bools are transmitted
  5. // as integers, however this function does check that the received integer is

Paste #pgd6yvzjo

  1. //On the Company Value GS code:
  2. //-------------------------------
  3.  
  4. function SCPManager::ReceivedSettingCommand(message, self)
  5. {

Paste #phqik4jng

  1. combination of switch expression syntax with "[expression1, ...]" for multiple things, and switch/layout body syntax with "foo: bar;"
  2.  
  3. produce(switch_name, [
  4.   IORE: expression;
  5.   COAL: expression;

Paste #pvekrsvxs

  1. production_version = 0 | 1
  2.  
  3. // 0 : behaviour as before (now)
  4. // 1 : new behaviour with up to 64 cargoes:

Paste #p3jacqznc

  1. class CompanyValue extends GSController
  2. {
  3.     companies = null;
  4.     goal_mode = null;
  5.     goal_reached = null;

Paste #ppdvctj9y

  1.  
  2. // Global function for checking if SCP is enabled at all
  3. function IsSCPEnabled()
  4. {
  5.     return 1;

Paste #psrm6pufi

  1. switch(FEAT_INDUSTRIES, SELF, extra_text_switch,
  2.         [STORE_TEMP(9000, 256)
  3.         | STORE_TEMP(9000, 257)
  4.         | STORE_TEMP(9000, 258)
  5.         | STORE_TEMP(9000, 259)

Paste #pntip1imo

  1. /*
  2.  * This file is aimed to provide an example on how to code a basic industry in NML.
  3.  * To keep the code readable, not every property or variable is documented in
  4.  * detail, refer to the object-specific reference in the documentation.
  5.  *

Paste #p4bk34jlw

  1. commit 41a620c1a7d51b0f97b243359a67955e6323f735
  2. Author: J0anJosep <juanjo.ng.83@gmail.com>
  3. Date:   Sat Mar 31 18:09:29 2018 +0200
  4.  
  5.     Fix #6805: (Doc) Road depot and stations (except rail stations and waypoints) do not use m8 for railtype.

Paste #pm6i1yfef

  1. commit 41a620c1a7d51b0f97b243359a67955e6323f735
  2. Author: J0anJosep <juanjo.ng.83@gmail.com>
  3. Date:   Sat Mar 31 18:09:29 2018 +0200
  4.  
  5.     Fix #6805: (Doc) Road depot and stations (except rail stations and waypoints) do not use m8 for railtype.